<template>
  <view
    >首页
    <button @tap="getUserInfo">获取用户信息</button>
  </view>
</template>

<script setup lang="ts">
import store from '@/store'
const getUserInfo = () => {
  store
    .dispatch('getUserInfoByToken')
    .then((res) => {
      console.log('111')
    })
    .catch((e) => {
      console.log('222')
    })
  store
    .dispatch('getUserInfoByToken')
    .then((res) => {
      console.log('1111')
    })
    .catch((e) => {
      console.log('2222')
    })
}
</script>

<style lang="scss"></style>
